package com.ruoyi.business.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 班级对象 t_class_info
 * 
 * @author lcz
 * @date 2025-02-20
 */
@Data
@ApiModel("班级对象")
public class ClassInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 班级ID */
    @ApiModelProperty("班级ID")
    private Long id;

    /** 班级名称 */
    @Excel(name = "班级名称")
    @ApiModelProperty("班级名称")
    private String className;

    /** 学校ID */
    @Excel(name = "学校ID")
    @ApiModelProperty("学校ID")
    private Long schoolId;

    /** 学校名称 */
    @Excel(name = "学校名称")
    @ApiModelProperty("学校名称")
    private String schoolName;

    /** 教师ID */
    @Excel(name = "教师ID")
    @ApiModelProperty("教师ID")
    private Long teacherId;

    /** 年级 */
//    @Excel(name = "年级")
    @ApiModelProperty("年级")
    private String grade;

    /** 年级名称 */
    @Excel(name = "年级名称")
    @ApiModelProperty("年级名称")
    private String gradename;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setClassName(String className) 
    {
        this.className = className;
    }

    public String getClassName() 
    {
        return className;
    }
    public void setSchoolId(Long schoolId) 
    {
        this.schoolId = schoolId;
    }

    public Long getSchoolId() 
    {
        return schoolId;
    }
    public void setSchoolName(String schoolName) 
    {
        this.schoolName = schoolName;
    }

    public String getSchoolName() 
    {
        return schoolName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("className", getClassName())
            .append("schoolId", getSchoolId())
            .append("schoolName", getSchoolName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
